//Naming
Name McLaren P1
Description Purple
ShortName MLP1PURPLE
ItemID 7028

//Visuals
Icon McLaren
Model Titascorpack_v4.McLarenP1
Texture mclarenp1purple
RotateWheels true

//Third Person Camera Distance
CameraDistance 5.0

//Throttle
MaxThrottle 2.1
MaxNegativeThrottle 0.7

//Steering modifiers
TurnLeftSpeed 1.0
TurnRightSpeed 1.0

//Drag
Drag 5.0

//Mass (In tons)
Mass 1.13

//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
MomentOfInertia 10.0

//More bounciness means the vehicle will bounce more upon going up slopes, but fall through the ground less
Bounciness 0.3

//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0

//If true, then all wheels will apply drive forces
FourWheelDrive false

//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 72

//Inventory Slots
CargoSlots 5
ShellSlots 0

//Driver and passenger positions
Driver 0 -9 -6
Passengers 1
Passenger 1 0 -9 6 core

//Delays are in ticks or 1/20ths of seconds
ShootDelay 999
ShellDelay 999

//Sounds
EngineSound p1
SlowEngineSound p1_stand
StartSound p1_on
StopSound p1_off
ElectricSound 0.0


//Recipe
SetupPart core 100 -30 0 -10 34 5 21
SetupPart core 100 -18 -5 -10 11 5 21
SetupPart frontRightWheel 100 -6 -10 8 10 10 2
SetupPart backRightWheel 100 -29 -10 8 10 10 2
SetupPart backLeftWheel 100 -29 -10 -9 10 10 2
SetupPart frontLeftWheel 100 -6 -10 -9 10 10 2


//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 8 green


//Health and collision
SetupPart backRightWheel 100 -35 -10 13 14 14 4
SetupPart core 220 -49 -4 -17 92 14 34
SetupPart frontRightWheel 100 21 -10 13 14 14 4
SetupPart backLeftWheel 100 -35 -10 -17 14 14 4
SetupPart frontLeftWheel 100 21 -10 -17 14 14 4
BulletDetection 5

HasDoors true

WheelPosition 0 -28 -8 -16
WheelPosition 1 -28 -8 16
WheelPosition 2 28 -8 16
WheelPosition 3 28 -8 -16
ModelScale 0.8

IsExplosionWhenDestroyed true

SquashMobs True

Gears 7
MinRPM 1200
MaxRPM 9800
MaxNegativeRPM 3500
Suspension 0.2
MinRotation 0.3
MaxRotation 3.0